from fastapi import Depends

from api import app
from common.result import ResultModel,Result
from model import Session,get_session
from model.account import AccountRegister
from service.registerService import registerService


@app.post('/register')
async def register_test(account: AccountRegister,db_session:Session = Depends(get_session)):
    registerService.register(account,db_session)
    return Result.success()